package Model;

public class MenuItem implements Comparable<MenuItem>{
    private int itemID;
    private String name;
    private String description;
    private double price;
    
    public MenuItem(int itemID, String name, String description, double price) {
        setItemID(itemID);
        setName(name);
        setDescription(description);
        setPrice(price);
    }
    
    @Override
    public String toString() {
        return name + ", " + itemID + "\n" + description + "\n" + price;
    }
    
    public int getItemID() {
        return itemID;
    }

    public void setItemID(int itemID) {
        this.itemID = itemID;
    }
    
    public String getName() {
        return name;
    }
    
    public void setName(String name) {
        this.name = name;
    }
    
    public String getDescription() {
        return description;
    }
    
    public void setDescription(String description) {
        this.description = description;
    }
    
    public double getPrice() {
        return price;
    }
    
    public void setPrice(double price) {
        this.price = price;
    }

	@Override
	public int compareTo(MenuItem o) {
		return name.compareTo(o.name);
	}

}